<template>
  <el-menu
    :default-active="activeIndex"
    class="admin-menu"
    @select="handleSelect"
    router
    mode="horizontal">
    <el-menu-item index="/document">文档管理</el-menu-item>
    <el-menu-item index="/project">项目管理</el-menu-item>
  </el-menu>
</template>

<script>
export default {
  name: 'Admin',
  data () {
    return {
      activeIndex: undefined
    }
  },
  methods: {
    handleSelect (key, keyPath) {
      this.$notify.info(key + '-' + keyPath)
    }
  }
}
</script>

<style scoped>

</style>
